@charset "utf-8";
* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

.clear::after {
    content: "";
    display: block;
    clear: both;
    overflow: hidden;
}

li {
    list-style: none;
}

body {
    @import './index-foot.scss';
    @import './index-head.scss';
    background-color: rgb(247, 247, 247);
    .content {
        width: 1200px;
        margin: auto;
        .car-title {
            position: relative;
            height: 66px;
            margin-bottom: 19px;
            line-height: 66px;
            color: #333;
            font-size: 20px;
            background-color: #fff;
            text-align: center;
            .buy-more {
                position: absolute;
                right: 35px;
                color: #333;
                font-size: 14px;
                cursor: pointer;
                &:hover {
                    color: #f51919;
                }
                >span {
                    margin-left: 5px;
                    font-weight: 600;
                }
            }
        }
        .tab-head {
            padding: 0 26px;
            background-color: white;
            >div {
                float: left;
                height: 64px;
                line-height: 64px;
                text-align: center;
            }
            >div:nth-child(1) {
                width: 175.5px;
                text-align: left;
                vertical-align: middle;
                >i {
                    border-radius: 3px;
                    display: inline-block;
                    width: 20px;
                    height: 20px;
                    margin-right: 10px;
                    margin-bottom: 5px;
                    vertical-align: middle;
                    user-select: none;
                    cursor: pointer;
                    background-image: url(../img/checkbox.png);
                    background-size: 100%;
                    background-position: 0 0px;
                }
                .checked {
                    background-position: 0 -28px;
                }
            }
            >div:nth-child(2) {
                width: 249.5px;
            }
            >div:nth-child(3) {
                width: 168px;
            }
            >div:nth-child(4) {
                width: 111px;
            }
            >div:nth-child(5) {
                width: 111px;
            }
            >div:nth-child(6) {
                width: 111px;
            }
            >div:nth-child(7) {
                width: 111px;
            }
            >div:nth-child(8) {
                width: 111px;
            }
        }
        /* 购物车列表 */
        .car-list {
            margin-top: 5px;
            background-color: rgb(247, 247, 247);
            >li {
                background-color: #fff;
                height: 152px;
                font-size: 14px;
                margin-bottom: 5px;
                padding: 0 26px;
                >div {
                    float: left;
                    height: 152px;
                    line-height: 152px;
                    text-align: center;
                }
                >div:nth-child(1) {
                    width: 175.5px;
                    text-align: left;
                    vertical-align: middle;
                    >i {
                        border-radius: 3px;
                        display: inline-block;
                        width: 20px;
                        height: 20px;
                        margin-right: 10px;
                        margin-bottom: 5px;
                        vertical-align: middle;
                        background-size: 100%;
                        cursor: pointer;
                        background-image: url(../img/checkbox.png);
                        background-position: 0 0px;
                        user-select: none;
                    }
                    .checked {
                        background-position: 0 -28px;
                    }
                    img {
                        height: 100px;
                        width: 100px;
                        vertical-align: middle;
                    }
                }
                >div:nth-child(2) {
                    width: 249.5px;
                    position: relative;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    line-height: 26px;
                    text-align: left;
                    box-sizing: border-box;
                    padding-top: 50px;
                    font-size: 14px;
                    text-indent: 55px;
                    >a {
                        color: #333;
                    }
                    >p {
                        text-align: left;
                    }
                    >span {
                        color: #f51919;
                    }
                }
                >div:nth-child(3) {
                    width: 168px;
                }
                .count {
                    font-size: 0;
                    height: 32px;
                    .reduce {
                        color: #999;
                        display: inline-block;
                        width: 32px;
                        height: 32px;
                        text-align: center;
                        line-height: 30px;
                        border: 1px solid #ddd;
                        background-color: white;
                        border-top-left-radius: 5px;
                        border-bottom-left-radius: 5px;
                        font-size: 22px;
                        vertical-align: middle;
                        cursor: pointer;
                        user-select: none;
                        &:hover {
                            color: #333;
                        }
                    }
                    input {
                        border: solid #ddd 1px;
                        border-left: 0;
                        border-right: 0;
                        font-size: 16px;
                        user-select: none;
                        vertical-align: top;
                        width: 36px;
                        height: 32px;
                        outline: none;
                        text-align: center;
                        vertical-align: middle;
                    }
                    .add {
                        display: inline-block;
                        font-size: 22px;
                        width: 32px;
                        height: 32px;
                        text-align: center;
                        user-select: none;
                        cursor: pointer;
                        line-height: 30px;
                        background-color: white;
                        border: 1px solid #ddd;
                        border-top-right-radius: 5px;
                        border-bottom-right-radius: 5px;
                        vertical-align: middle;
                        color: #999;
                        user-select: none;
                        &:hover {
                            color: #333;
                        }
                    }
                }
                >div:nth-child(4) {
                    width: 111px;
                }
                >div:nth-child(5) {
                    width: 111px;
                }
                >div:nth-child(6) {
                    width: 111px;
                }
                >div:nth-child(7) {
                    width: 111px;
                    color: #f51919;
                }
                >div:nth-child(8) {
                    width: 111px;
                    cursor: pointer;
                }
            }
        }
        /* 购买和加入购物车 */
        .buy {
            height: 98px;
            padding: 0 26px;
            margin-top: 5px;
            background-color: white;
            font-size: 0;
            line-height: 98px;
            position: relative;
            >p {
                display: inline-block;
                font-size: 14px;
                letter-spacing: 2px;
                height: 98px;
                >span {
                    color: #f51919;
                }
                >b {
                    font-size: 36px;
                    font-weight: 100;
                    letter-spacing: 0;
                    color: #f51919;
                }
                >i {
                    font-style: normal;
                    font-size: 36px;
                    letter-spacing: 0;
                    color: #f51919;
                }
            }
            .to-buy {
                display: inline-block;
                font-size: 22px;
                line-height: 32px;
                padding: 8px 60px;
                border-radius: 20px;
                background-color: #f51919;
                color: #fff;
                position: absolute;
                right: 30px;
                top: 24px;
                cursor: pointer;
            }
        }
        .no-result {
            height: 452px;
            background-color: white;
            text-align: center;
            .car-pic {
                >img {
                    width: 189px;
                    height: 144px;
                    margin-top: 76px;
                }
            }
            >p {
                margin-top: 20px;
                font-size: 15px;
                color: #666;
                text-align: center;
                line-height: 22.5px;
            }
            .no-result-btn {
                margin-top: 40px;
                .go-shop {
                    display: inline-block;
                    width: 170px;
                    height: 46px;
                    line-height: 46px;
                    text-align: center;
                    color: #fff;
                    font-size: 18px;
                    border-radius: 20px/50%;
                    user-select: none;
                    background-color: #ff0c53;
                }
            }
        }
        .show {
            display: block;
        }
        .hide {
            display: none;
        }
    }
}